package com.wq.hardcodeaudiovideostudy.activity;

import android.Manifest;
import android.os.Bundle;


import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;

import com.wq.hardcodeaudiovideostudy.permission.RequestPermissionManager;

import butterknife.ButterKnife;


public abstract class BaseActivity extends AppCompatActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(setLayoutId());
        ButterKnife.bind(this);
        startRequestPermission();
        initView();
    }

    private void startRequestPermission() {
        RequestPermissionManager.startRequestPermission(this);
    }
    public void initView(){

    }
    protected abstract int setLayoutId();
}
